package cn.itcast.java.api;

/**
 * Author itcast
 * Date 2021/10/9 10:06
 * Desc TODO
 */
public class Phone {
    private String color;
    private double money;

    //成员方法
    public void call(String name){
        System.out.println("给 "+name+" 打电话");
    }

    public void message(String name){
        System.out.println("给 "+name+" 发短信");
    }
}
